package fms.msgupcenter.protocols.uplinkmsg;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午1:52
 * To change this template use File | Settings | File Templates.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class WindMsgHead {
//appUpMsgId="02fb8c70-2b29-48c5-9bb1-5cdfb9810016"
// an="B-6619"
// fi="HU1161"
// destination="HAKDPHU"
// signature="DDLXCXA"
// smi="FML"
// dsp="DDL"
// rgs="XXA"
// rgsTime="2014-11-17 2:46:11"
// msn="F33A"
// maNum="001"
// ackType="MANU"
// state="8"
// errorCode=""
// appName="FMS"
// appUpMsgType=""
// upsender=""
    @XmlAttribute(name="appUpMsgId")
    private String appUpMsgId;
    @XmlAttribute(name="an")
    private String an;
    @XmlAttribute(name="fi")
    private String fi;
    @XmlAttribute(name="destination")
    private String destination;
    @XmlAttribute(name="signature")
    private String signature;
    @XmlAttribute(name="smi")
    private String smi;
    @XmlAttribute(name="dsp")
    private String dsp;
    @XmlAttribute(name="rgs")
    private String rgs;
    @XmlAttribute(name="rgsTime")
    private String rgsTime ;
    @XmlAttribute(name="msn")
    private String msn;
    @XmlAttribute(name="maNum")
    private String maNum;
    @XmlAttribute(name="ackType")
    private boolean ackType;
    @XmlAttribute(name="state")
    private String state;
    @XmlAttribute(name="errorCode")
    private String errorCode;
    @XmlAttribute(name="appName")
    private String appName;
    @XmlAttribute(name="appUpMsgType")
    private String appUpMsgType;
    @XmlAttribute(name="upsender")
    private String upsender;
    @XmlElement(name="tag")
    private String tag;


    public WindMsgHead(){
        this.appUpMsgId = "";
        this.appUpMsgType = "";

        this.an = "";
        this.fi = "";

        this.smi = "";

    }

    public WindMsgHead(String appUpMsgId, String an, String fi, String destination, String signature, String smi, String dsp, String rgs, String rgsTime, String msn, String maNum, boolean ackType, String state, String errorCode, String appName, String appUpMsgType, String upsender, String tag) {
        this.appUpMsgId = appUpMsgId;
        this.an = an;
        this.fi = fi;
        this.destination = destination;
        this.signature = signature;
        this.smi = smi;
        this.dsp = dsp;
        this.rgs = rgs;
        this.rgsTime = rgsTime;
        this.msn = msn;
        this.maNum = maNum;
        this.ackType = ackType;
        this.state = state;
        this.errorCode = errorCode;
        this.appName = appName;
        this.appUpMsgType = appUpMsgType;
        this.upsender = upsender;
        this.tag = tag;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getAppUpMsgId() {
        return appUpMsgId;
    }

    public void setAppUpMsgId(String appUpMsgId) {
        this.appUpMsgId = appUpMsgId;
    }

    public String getAn() {
        return an;
    }

    public void setAn(String an) {
        this.an = an;
    }

    public String getFi() {
        return fi;
    }

    public void setFi(String fi) {
        this.fi = fi;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSmi() {
        return smi;
    }

    public void setSmi(String smi) {
        this.smi = smi;
    }

    public String getDsp() {
        return dsp;
    }

    public void setDsp(String dsp) {
        this.dsp = dsp;
    }

    public String getRgs() {
        return rgs;
    }

    public void setRgs(String rgs) {
        this.rgs = rgs;
    }

    public String getRgsTime() {
        return rgsTime;
    }

    public void setRgsTime(String rgsTime) {
        this.rgsTime = rgsTime;
    }

    public String getMsn() {
        return msn;
    }

    public void setMsn(String msn) {
        this.msn = msn;
    }

    public String getMaNum() {
        return maNum;
    }

    public void setMaNum(String maNum) {
        this.maNum = maNum;
    }

    public boolean isAckType() {
        return ackType;
    }

    public void setAckType(boolean ackType) {
        this.ackType = ackType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppUpMsgType() {
        return appUpMsgType;
    }

    public void setAppUpMsgType(String appUpMsgType) {
        this.appUpMsgType = appUpMsgType;
    }

    public String getUpsender() {
        return upsender;
    }

    public void setUpsender(String upsender) {
        this.upsender = upsender;
    }
}
